package com.sstir.doctor.common;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @ClassName BusinessResponseEnum
 * @Description
 * @Author hanjunjun
 * @Date 2021/1/15 9:56
 */
@AllArgsConstructor
@NoArgsConstructor
public enum  BusinessResponseEnum {

    PARAM_IS_NULL(601, "参数为空"),
    BUSINESS_EXCEPTION(600, "业务处理异常"),
    DB_NO_SOURCE(602, "数据库没有该资源"),
    USER_ALREADY_REG(5501, "用户名已存在");

    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String message;

    public void setCode(int code){
        this.code = code;
    }

    public void setMessage(String message){
        this.message = message;
    }

    public int getCode(){
        return this.code;
    }

    public String getMessage(){
        return this.message;
    }





}
